﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GovernmentOfficeProject.LevelDataAccessModel
{
    public class Entity_USER_Role
    {
        private decimal roleID = -1;
        public decimal RoleID
        {
            get { return roleID; }
            set { roleID = value; }
        }

        private List<Entity_USER_User> users;            //一个角色组有多个用户，一个用户有多个角色组，多对多关系。
        public List<Entity_USER_User> Users
        {
            get { return users; }
            set { users = value; }
        }

        private string roleName;
        public string RoleName
        {
            get { return roleName; }
            set { roleName = value; }
        }

        private string roleDesc;
        public string RoleDesc
        {
            get { return roleDesc; }
            set { roleDesc = value; }
        }

         private decimal createUserID = -1;                   //谁创建的当前资料
        public decimal CreateUserID
        {
            get { return createUserID; }
            set { createUserID = value; }
        }

        private string createDateTime;                  //创建时间是何时
        public string CreateDateTime
        {
            get { return createDateTime; }
            set 
            { 
                createDateTime = value; 
            }
        }

        private decimal modifyUserID = -1;              //谁修改的当前资料
        public decimal ModifyUserID
        {
            get { return modifyUserID; }
            set { modifyUserID = value; }
        }

        private string modifyDateTime;                //修改时间
        public string ModifyDateTime
        {
            get { return modifyDateTime; }
            set
            {
                modifyDateTime = value;
            }
        }
        /// <summary>
        /// 记录角色状态.
        /// </summary>
        private decimal recordStatus = -1;
        public decimal RecordStatus
        {
            get { return recordStatus; }
            set { recordStatus = value; }
        }

        private bool selected = false;          //用户控件的选中状态.

        public bool Selected
        {
            get { return selected; }
            set { selected = value; }
        }
    }
}
